This section describes new functions provided by movie data import components.
The MovieImportGetFileType allows your movie data import component to tell the Movie Toolbox the appropriate file type for the most-recently imported movie file.
pascal ComponentResult MovieImportGetFileType (MovieImportComponent ci, OSType *fileType);
The MovieImportGetAuxiliaryDataType function returns the type of the auxiliary data that it can accept. For example, calling the text import component with MovieImportGetAuxiliaryDataType indicates that the text import component will use 'styl' information in addition to 'TEXT' data.
pascal ComponentResult MovieImportGetAuxiliaryDataType(
MovieImportComponent ci,
OSType *auxType);
Returns a list of MIME types supported by the movie import component.
pascal ComponentResult MovieImportGetMIMETypeList (
MovieImportComponent ci,
QTAtomContainer *mimeInfo);
Your movie import component can support MIME types that correspond to formats it supports. To make a list of these MIME types available to applications or other software, it must implement the MovieImportGetMIMETypeList function.
To indicate that your movie import component supports this function, set the hasMovieImportMIMEList flag in the componentFlags field of the component description record.
The MovieImportValidate function allows your movie data import component to validate the data to be passed to your component.
pascal ComponentResult MovieImportValidate(
MovieImportComponent ci,
const FSSpec *theFile,
Handle theData,
Boolean *valid);
The MovieImportSetOffsetAndLimit function allows your application to import data from a part of a file rather than the entire file.
pascal ComponentResult MovieImportSetOffsetAndLimit(
MovieImportComponent ci,
unsigned long offset,
unsigned long limit);
The MovieImportSetOffsetAndLimit function is especially useful when one file format is embedded in another; it allows your application to skip header data for the enclosing file and begin importing data at the start of the desired format.
Not all movie import components support the MovieImportSetOffsetAndLimit function. Those that do include the movie import components for the kQTFileTypeAIFF , kQTFileTypeWave , and kQTFileMuLaw file types. Those that do not return the badComponentSelector result code in response to a MovieImportSetOffsetAndLimit call.
The MovieImportGetSettingsAsAtomContainer routine retrieves the current settings from the movie import component.
pascal ComponentResult MovieImportGetSettingsAsAtomContainer (
MovieImportComponent ci,
QTAtomContainer *settings);
The MovieImportSetSettingsFromAtomContainer routine sets the movie import component's current configuration from the passed settings data.
pascal ComponentResult MovieImportSetSettingsFromAtomContainer (
MovieImportComponent ci,
QTAtomContainer settings);
| Previous | Chapter contents | Chapter top | Section top | Next |